# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josh Taillon <jat255@gmail.com>

pkgname=msr-tools
pkgver=1.3
pkgrel=4
pkgdesc="Utilities to access the processor MSRs and CPU ID directly"
arch=('loong64' 'x86_64')
url="https://01.org/msr-tools"
license=('GPL2')
depends=('glibc')
source=("https://01.org/sites/default/files/downloads/${pkgname}/${pkgname}-${pkgver}.zip")
sha512sums=('9605eed0b6211d0ecbe48a14d66b5d61965770f249c5c1b15416d4f2e9a37a68ecfde171077c3acc74bb6b951749bcff186acbb4d6d8a3051695d2d97c0e332b')

build() {
  cd msr-tools-master
  make
}

package() {
  cd msr-tools-master
  mkdir -p "$pkgdir"/usr/bin
  make sbindir="$pkgdir"/usr/bin install
}
